//引入重置样式 公共样式 和其他样式 =》swiper
@import"../../assets/css/reset.css";
@import"../../assets/css/common.css";
@import"../../assets/libs/fonts/iconfont.css";

//头部独立样式
header {
    border-bottom: 1px solid rgb(185, 207, 239);

    .register {
        a {
            color: fff !important;
        }
    }

    nav {
        a {
            color: #000;
        }
    }

    .login {
        a {
            color: #000;
        }
    }
}

main {

    // API分类
    h2 {
        margin: 50px 0 35px 0;
        font-size: 18px;
    }

    //API分类动态生成详请
    ul:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 55px;

        li {
            padding: 5px 10px;
            border: 1px solid #ccc;
            border-radius: 10px;
            margin: 0 10px 15px 0;
        }

        .active {
            border-color: rgb(0, 189, 255);
            color: rgb(0, 189, 255);
        }

    }

    //API分类搜索按钮
    .search {
        position: relative;
        margin-bottom: 50px;

        span:nth-child(1) {
            font-weight: 900;
            margin-right: 30px;
        }

        input {
            width: 250px;
            height: 30px;
            border-radius: 15px;
            background-color: rgb(244, 244, 244);
            outline: none;
            border: none;
            text-indent: 20px;
        }

        .icon-sousuo {
            position: absolute;
            top: 6px;
            left: 288px;
            font-size: 22px;
        }

    }

    // <!-- API动态生成图文内容 -->
    .searchUl {
        height: 1030px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: space-between;
        margin-bottom: 50px;

        li {
            height: 245px;
            width: 225px;
            border: 1px solid #ccc;
            position: relative;
            overflow: hidden;

            .center {
                height: 125px;
                width: 210px;
                // background-color: rgb(101, 172, 85);
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;

                img {
                    height: 65px;
                    width: 65px;
                }
            }

            // 申请数据按钮
            button {
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                height: 30px;
                border: none;
                background-color: rgb(0, 189, 255);
                color: #fff;
                margin-bottom: -30px;
                transition: all 500ms;
            }

        }

        // <!-- API动态生成图文内容hover效果 -->
        li:hover button {
            margin-bottom: 0px;
            cursor: pointer;
        }
    }

    //模态框
    .tab-content{
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0,0.3);
        z-index: 999;
        user-select: none;
        // display: none;

    }


    //分页符
    .break {
        width: 570px;
        height: 45px;
        margin: 50px auto;

        a {
            display: inline-block;
            height: 30px;
            width: 30px;
            margin-right: 20px;
            color: #000;
            text-align: center;
            border-radius: 50%;
            line-height: 30px;
        }

        a.active {
            background-color: #00bdff;
            color: #fff;
        }

        .last-a {
            display: inline-block;
            color: #00bdff !important;
            width: 50px !important;
        }
    }

}

.footerDivColor {
    background-color: rgb(248, 248, 248);
}

    .loginLflet {
        width: 60%;
        height: 100%;
        position: relative;
        background-color: rgb(0, 167, 242);

        img {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    }

    //登录表单
    .loginritht {
        width: 40%;
        height: 100%;
        position: relative;
        //登录表单的绝对居中 主体
        .modol {
            height: 500px;
            width: 400px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            // background-color: rgb(119, 214, 154);
            //源码大数据头部logo图片
            img {
                display: block;
                margin: 30px auto;


            }
            //选项卡头部菜单
            ul {
                height: 50px;
                width: 200px;
                display: flex;
                justify-content: space-between;
                margin: 35px auto;
                line-height: 50px;
                position: relative;

                //  <!-- 选项卡菜单账号注册扫码登录 -->
                li {
                    font-size: 18px;
                    cursor: pointer;
                    position: relative;
                    //点击添加类名颜色改变
                    &.active {
                        color: #00bdff;
                    }
                    &.active span {
                        display: inline-block;
                        height: 3px;
                        width: 54px;
                        position: absolute;
                        background-color: #00bdff;

                        right: 10px;
                        top: 42px;
                    }
                }
                // 登录表单抬头灰色分割竖线条
                .on {
                    position: absolute;
                    height: 18px;
                    width: 3px;
                    background-color: #eee;
                    top: 15px;
                    right: 98px;
                }
            }
            //表单主体
            .tab-content {
                height: 355px;
                width: 100%;
                padding: 0 20px;
                // background-color: rgb(179, 221, 142);
                //选项卡第一部分账号注册 进来先隐藏display: none;
                .tab-content-laft {
                    //进来先隐藏
                    display: none;
                    //用户名手机号输入框
                    p:nth-child(1) {
                        position: relative;

                        input {
                            display: block;
                            width: 100%;
                            height: 40px;
                            border: none;
                            outline: none;
                            border-bottom: 1px solid #e7e7e7;
                            text-indent: 25px;
                            line-height: 40px;
                            font-size: 12px;
                            color: #757575;
                            margin-bottom: 20px;
                        }

                        //手机号输入不正确提示文字
                        b {
                            font-size: 12px;
                            color: red;
                            width: 80px;
                            height: 13px;
                            position: absolute;
                            top: 15px;
                            right: 0;
                            display: none;
                        }
                        //账号图标
                        span {
                            position: absolute;
                            left: -4px;
                            top: 10px;
                            display: inline-block;
                            height: 25px;
                            width: 25px;
                            background: url(../../assets/imgs/loginIcon.png) no-repeat -53px -3px;
                            ;

                        }
                    }

                    //密码输入框 
                    p:nth-child(2) {
                        position: relative;

                        input {
                            display: block;
                            width: 100%;
                            height: 40px;
                            border: none;
                            outline: none;
                            border-bottom: 1px solid #e7e7e7;
                            text-indent: 25px;
                            line-height: 40px;
                            font-size: 12px;
                            color: #757575;
                            margin-bottom: 20px;

                        }

                        //密码输入不正确提示文字
                        b {
                            font-size: 12px;
                            color: red;
                            width: 84px;
                            height: 13px;
                            position: absolute;
                            top: 15px;
                            right: 0;
                            display: none;
                        }

                        span {
                            position: absolute;
                            left: -4px;
                            top: 10px;
                            display: inline-block;
                            height: 25px;
                            width: 25px;
                            background: url(../../assets/imgs/loginIcon.png) no-repeat;
                            background-position: -24px -3px;
                        }
                    }

                    //忘记密码？
                    p:nth-child(3) {
                        text-align: right;
                        margin-bottom: 20px;
                        color: #00bdff;
                        cursor: pointer;
                    }

                    //按钮
                    button {
                        display: block;
                        height: 45px;
                        width: 360px;
                        margin: 0 auto;
                        border: none;
                        outline: none;
                        background-color: #00bdff;
                        color: #fff;
                        margin-bottom: 20px;
                        cursor: pointer;
                    }

                    //没有账号立即注册
                    p:nth-child(5) {
                        color: #757575;

                        a {
                            color: #00bdff;
                            cursor: pointer;
                        }

                        span {
                            display: inline-block;
                            height: 20px;
                            width: 20px;
                            vertical-align: middle;
                            background: url(../../assets/imgs/loginIcon.png);
                            background-position: 110px -36px;
                            cursor: pointer;
                        }
                    }
                }
                //选项卡第二部分扫码登录 进来先隐藏display: none;
                .tab-content-right {
                    //进来先隐藏
                    display: none;
                    p:nth-child(1){
                        height: 265px;
                        width: 290px;
                        margin: 0 auto;
                        background-color:#cfcfcf; 
                        padding-top: 20px ;
                        text-align: center;
                        img{
                            display: block;
                            margin: 25px auto;
                        }
                        b{
                            font-weight: normal;
                            margin: 20px auto;
                            font-size: 12px;
                        }
                        span{
                            display: block;
                            font-size: 12px;
                            margin-top: 20px;
                        }
                        
                    }
                    //没有账号立即注册
                    p:nth-child(2){
                        font-size: 12px;
                        color: #909090;
                        margin-top: 20px;
                        text-align: center;
                        a{
                            color: #00bdff;
                        }
                        span{
                            display: inline-block;
                            height: 20px;
                            width: 20px;
                            background: url(../../assets/imgs/loginIcon.png);
                            background-position: -217px 20px;
                            vertical-align: middle;
                        }
                    }
                  
                   
                }
                //点击添加类名显示display: block;
                .act{
                    display: block;
                }

            }
        }
    }
}